package com.example.robertluozizhao.framecollectdemo.activity

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import butterknife.ButterKnife
import android.widget.TextView
import com.example.robertluozizhao.framecollectdemo.R

/**
 * Created by robert.luozizhao on 2018/1/31.
 */
class JniTestActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_jni_test)
        ButterKnife.bind(this)
        (findViewById<View>(R.id.tv_jni) as TextView).text = testToStr()
    }

    external fun testToStr(): String?

    companion object {
        init {
            System.loadLibrary("lib-jniTest")
        }
    }
}